﻿/*
 * Author:xmfdsh 11届网络部--邓世豪
 * DataTime：2014-6-9
 * Copyright © 2014 大学生勤工助学服务队 Powered by xmfdsh & 四小狼工作室.
 * 版权所有，违者必究
 */
using QGZX.Helper;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web.Mvc;

namespace QGZX.Logic.QGOA
{
    public class UserController : Controller
    {
        #region 学生用户登录后首页 + ActionResult Index()
        /// <summary>
        /// 学生用户登录后首页
        /// </summary>
        /// <returns></returns>
        public ActionResult Index()
        {
            return View();
        } 
        #endregion

        #region 学生用户 我的信息 + Info()
        /// <summary>
        /// 学生用户登录后首页
        /// </summary>
        /// <returns></returns>
        public ActionResult Info()
        {
            MODEL.qgzx_config model = OperateContext.Current.BLLSession.Iqgzx_configBLL.GetListBy(x => x.SystemName != null).FirstOrDefault();
            ViewBag.configModel = model;
            //从session取到user
            MODEL.qgoa_user user = (MODEL.qgoa_user)Session["user"];
            ViewBag.user = user;
            return View();
        }
        #endregion
    }
}
